var kssrfxColors = pieColorsArray.reverse();
//渠道比较一天饼形图
var qdbjDayOpt = {
					chart: {
						type: 'variablepie'
					},
					title: {
						text: null
					},
					tooltip: {
						pointFormat: '{point.percentage:.1f}% {series.name}'
					},
					colors: kssrfxColors,
					plotOptions: {
						variablepie: {
							enabled: true,
							dataLabels: {
								enabled: true,
								color: '#fff',
								connectorWidth: 0,
								distance: 10,
								format: '{point.percentage:.1f}% {point.name}',
								style: {
									color: '#fff',
									fontSize: '14px',
									fontWeight: "normal"
								}
							}
						}
					},
					series: [{
						minPointSize: 10,
						zMin: 0,
						size: 150,
						borderWidth: 5,
						borderColor: 'transparent',
					}]
}


function loadqdbj(){
	$.ajax({
		url: "/mock/loadPie2", 
		type: "POST",  
		success: function(dataz){
			qdbjDayOpt.series[0].data=dataz.data.pieChart.dataday;
			console.log("dqdbj-d",qdbjDayOpt.series[0].data);
			$("#fsjezb-d-content").highcharts(qdbjDayOpt);
			
			//渠道比较一月饼形图
			var qdbjMonthOpt =$.extend({},qdbjDayOpt);
			qdbjMonthOpt.series[0].data=dataz.data.pieChart.datamonth;
			console.log("dqdbj-m",qdbjMonthOpt.series[0].data);
			$("#fsjezb-m-content").highcharts(qdbjMonthOpt);
			
			//渠道比较一年饼形图
			var qdbjYearOpt =$.extend({},qdbjDayOpt);
			qdbjYearOpt.series[0].data=dataz.data.pieChart.datayear;
			console.log("dqdbj-y",qdbjYearOpt.series[0].data);
			$("#fsjezb-y-content").highcharts(qdbjYearOpt);
      }
	
	});
	
}
/*
qdbjDayOpt.series[0].data=[{
							name: '支付宝',
							y: 22,
							z: 25
						}, {
							name: '微信',
							y: 53,
							z: 88
						}, {
							name: '银联',
							y: 22,
							z: 50
						}];
$("#fsjezb-d-content").highcharts(qdbjDayOpt);

				//渠道比较一月饼形图
				
var qdbjMonthOpt =$.extend({},qdbjDayOpt);
				
qdbjMonthOpt.series[0].data=[{
							name: '支付宝',
							y: 32,
							z: 50
						}, {
							name: '微信',
							y: 62,
							z: 88
						}, {
							name: '银行卡',
							y: 6,
							z: 13
						}];
				
$("#fsjezb-m-content").highcharts(qdbjMonthOpt);
				//渠道比较一年饼形图
var qdbjYearOpt =$.extend({},qdbjDayOpt);
				
				qdbjYearOpt.series[0].data=[{
							name: '支付宝',
							y: 21,
							z: 35
						}, {
							name: '微信',
							y: 70,
							z: 62
						}, {
							name: '银行卡',
							y: 9,
							z: 15
						}]
				
$("#fsjezb-y-content").highcharts(qdbjYearOpt);*/
				
				
				